namespace Backoffice.Application.Common.Interfaces;

public interface IPasswordHasher
{

    string GenerateSalt();
    /// <summary>
    /// 哈希密码
    /// </summary>
    /// <param name="password">要哈希的密码</param>
    /// <returns>哈希后的密码</returns>
    string HashPassword(string password);

    /// <summary>
    /// 验证哈希密码
    /// </summary>
    /// <param name="hashedPassword">已哈希的密码</param>
    /// <param name="providedPassword">提供的密码</param>
    /// <returns>如果匹配则返回 true，否则返回 false</returns>
    bool VerifyHashedPassword(string hashedPassword, string providedPassword);
}
